package com.thesis.service.impl;

import com.thesis.dao.SysDictValueMapper;
import com.thesis.entity.SysDictValue;
import com.thesis.service.DictValueService;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Anvy at 2020/4/17.
 */
@Service("dictValueService")
public class DictValueServiceImpl implements DictValueService {

    @Autowired
    private SysDictValueMapper dictValueMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return dictValueMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SysDictValue record) {
        return dictValueMapper.insert(record);
    }

    @Override
    public int insertSelective(SysDictValue record) {
        return dictValueMapper.insertSelective(record);
    }

    @Override
    public SysDictValue selectByPrimaryKey(Long id) {
        return dictValueMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysDictValue record) {
        return dictValueMapper.updateByPrimaryKeySelective(record);
    }


    @Override
    public int updateByPrimaryKey(SysDictValue record) {
        return dictValueMapper.updateByPrimaryKey(record);
    }

    @Override
    public Page<SysDictValue> findPageList(SysDictValue record) {
        return dictValueMapper.findPageList(record);
    }

    @Override
    public Page<SysDictValue> findPageListByVague(SysDictValue queryParam, String vagueParam) {
        return dictValueMapper.findPageListByVague(queryParam,vagueParam);
    }

    @Override
    public Integer deleteBatchByIds(List<Integer> idList) {
        return dictValueMapper.deleteBatchByIds(idList);
    }

    @Override
    public List<SysDictValue> findListByDictCode(String dictCode) {
        return dictValueMapper.findListByDictCode(dictCode);
    }

    @Override
    public String findBillByMap(Map<String, Object> queryMap) {
        return dictValueMapper.findBillByMap(queryMap);
    }
}
